import instance from '@/utils/request'

//1.登录接口
export function login(username, password){
    return instance.post("/login", {
        username,
        password
    })
}
//2.获取当前用户名
export function getUserInfo(){
    return instance.get("/admin/user/info")
}
//3.用户修改密码
export function changePassword(data){
    console.log(data)
    return instance.post("/admin/password/update", data)
}

